#ifndef __ALIYUN_H__
#define __ALIYUN_H__

#include <Arduino.h>

#include "WiFiClient.h"
#include "PubSubClient.h"
#include "WiFi.h"

extern PubSubClient client;

//MQTT服务器的domain地址
#define aliyun_server "a1ay7f9DL7I.iot-as-mqtt.cn-shanghai.aliyuncs.com"
//MQTT服务器的port端口
#define aliyun_port 1883
//client端标识符
#define mqtt_client_id "12345|securemode=3,signmethod=hmacsha1|"
//用户账号
#define mqtt_username "ESP32_LED&a1ay7f9DL7I"
//用户密码
#define mqtt_password "0922F148DAAA0E418ED49533979B0240603CDBD5"

//连接阿里云物联网平台
void connect_to_aliyun(void);


#endif
